package com.bitin.module.project.domain.entity;

import com.bitin.module.project.domain.enumeration.TransactionChannel;
import com.bitin.module.project.domain.enumeration.TransferState;
import com.bitin.module.project.domain.enumeration.TransferType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.Id;

import java.math.BigDecimal;

import static jakarta.persistence.EnumType.STRING;

/**
 * @author Mr.Lu
 * @since 2024/8/26 13:54
 */
public class Transfer {
    @Id
    private String id;
    private String orderId;
    private String payeeAccount;
    private String payeeAccountName;
    private BigDecimal amount;
    @Enumerated( STRING )
    private TransferType type;
    @Enumerated( STRING )
    private TransactionChannel channel;
    private String channelSerialNumber;
    @Enumerated( STRING )
    private TransferState state;
}
